import Layout from '@/layout'

export default [
  {
    path: '/role',
    component: Layout,
    redirect: '/role/index',
    name: 'role',
    meta: { title: '角色管理', icon: 'example', roles: ['*', '角色'] },
    children: [
      {
        path: 'index',
        name: 'role-index',
        component: () => import('@/views/manager/role/index'),
        meta: { title: '角色管理', icon: 'form' }
      },
      {
        path: 'create',
        name: 'role-create',
        component: () => import('@/views/manager/role/create'),
        meta: { title: '创建角色', icon: 'form' }
      },
      {
        path: 'edit/:id',
        name: 'role-edit',
        hidden: true,
        component: () => import('@/views/manager/role/edit'),
        meta: { title: '编辑角色', icon: 'form' }
      }
    ]
  }
]
